<?php

namespace app\admin\model;

class Algorithm extends BaseModel
{

    protected $attributes = [
        'algorithm' => [
            68 => 'SOLO',
            1 => 'Blake256R14',
            2 => 'Blake256R14-dcr',
            3 => 'Blake2B-Sia',
            4 => 'Blake3',
            5 => 'CryptoNight',
            6 => 'Cuckatoo32',
            7 => 'Eaglesong',
            8 => 'Equihash',
            9 => 'Ethash',
            11 => 'Groestl',
            12 => 'Handshake',
            // 13 => 'Kadena',
            14 => 'KheavyHash',
            15 => 'LBC',
            16 => 'NexaPow',
            17 => 'RandomX',
            18 => 'Scrypt',
            19 => 'SHA-256',
            20 => 'SHA512256d',
            21 => 'Tensority',
            22 => 'X11',
            23 => 'zkSNARK',
            24 => 'LBRY',
            25 => 'Lyra2REv2',
            26 => 'Blake2B',
            27 => 'CryptonightLite',
            28 => 'CryptonightV7',
            30 => 'CuckooCycle',
            31 => 'Equihash144,5',
            32 => 'Equihash210_9',
            33 => 'Etchash',
            34 => 'FishHash',
            35 => 'KarlsenHash',
            36 => 'KawPow',
            37 => 'Multiple',
            38 => 'NeoScrypt',
            39 => 'Odocrypt',
            40 => 'PrimeConstellations',
            41 => 'PrimeSix',
            42 => 'Qubit',
            43 => 'RandomHash2',
            44 => 'ScryptPID',
            45 => 'SHA-256Ton',
            46 => 'Skein',
            47 => 'Tribus',
            48 => 'vBlake2',
            49 => 'X13',
            50 => 'X16R',
            51 => 'X16RT',
            52 => 'X17R',
            53 => 'ZelHash',
            54 => 'Autolykos2',
            55 => 'Blake2S',
            56 => 'Octopus',
            57 => 'Blake2B+SHA3',
            58 => 'BeamHashIII',
            59 => 'CryptonightHaven',
            60 => 'MTP',
            61 => 'Verthash',
            62 => 'Blake256',
            63 => 'Pascal',
            64 => 'Argon2d',
            65 => 'C11',
            66 => 'Scrypt-jane',
            67 => 'Lyra2Zoin',
            69 => 'SHA-256d'
        ],
        'if_show' => [
            0 => '不显示',
            1 => '显示',

        ]
    ];

    /**
     * @describe
     * @author: Bobo
     * @date: 2025-04-15 15:33:31 
     * @param [type] @required
     * @return Renderable
     */
    public function getAttributes($attr)
    {
        return $this->attributes[$attr];
    }

    protected $enumCallbacks = [];

    public function getFieldEnum($field)
    {
        return $this->getEnum($field, [], 'label');
    }
}
